package sctu.edu.java.year2016.team05.xiongyihui.day20160522.chapter3_3;

/**
 * Created by 熊怡惠 on 2016/5/22.
 * 编写JAVA程序u，声明两个变量并赋值38.9和27.2作为矩形的长和宽，求出该矩形的面积。
 */

import java.util.Scanner;

public class three {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        System.out.println("请输入矩形的长：");
        float m = scan.nextFloat();
        System.out.println("请输入矩形的宽：");
        float n = scan.nextFloat();
        float k = m * n;
        System.out.println("这个矩形的面积是：" + k);
    }

}
